
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>1.HTML 简介 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="2-basice.html" />
    
    
    <link rel="prev" href="../" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" >
            
                <span>
            
                    
                    入门
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="../">
            
                <a href="../">
            
                    
                    0.HTML 介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.1.2" data-path="1-introduce.html">
            
                <a href="1-introduce.html">
            
                    
                    1.HTML 简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3" data-path="2-basice.html">
            
                <a href="2-basice.html">
            
                    
                    2.HTML 基础
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    基础
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="3-element.html">
            
                <a href="3-element.html">
            
                    
                    3.HTML 元素
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="4-attritube.html">
            
                <a href="4-attritube.html">
            
                    
                    4.HTML 属性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="5-title.html">
            
                <a href="5-title.html">
            
                    
                    5.HTML 标题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="6-paragraph.html">
            
                <a href="6-paragraph.html">
            
                    
                    6.HTML 段落
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="7-textformat.html">
            
                <a href="7-textformat.html">
            
                    
                    7.HTML 文本格式化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="8-link.html">
            
                <a href="8-link.html">
            
                    
                    8.HTML 超链接
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="9-head.html">
            
                <a href="9-head.html">
            
                    
                    9.HTML head
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8" data-path="10-css.html">
            
                <a href="10-css.html">
            
                    
                    10.HTML CSS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.9" data-path="11-imgs.html">
            
                <a href="11-imgs.html">
            
                    
                    11.HTML 图片
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.10" data-path="12-tables.html">
            
                <a href="12-tables.html">
            
                    
                    12.HTML 表格
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.11" data-path="13-list.html">
            
                <a href="13-list.html">
            
                    
                    13.HTML 列表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.12" data-path="14-block.html">
            
                <a href="14-block.html">
            
                    
                    14.HTML 区块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.13" data-path="15-layouts.html">
            
                <a href="15-layouts.html">
            
                    
                    15.HTML 布局
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    其他
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="support.html">
            
                <a href="support.html">
            
                    
                    赞助/支持
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >1.HTML 简介</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="html-&#x7B80;&#x4ECB;">HTML &#x7B80;&#x4ECB;</h1>
<pre><code class="lang-html"><span class="hljs-meta">&lt;!DOCTYPE html&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">html</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">head</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">title</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">title</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">head</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">body</span>&gt;</span>

<span class="hljs-tag">&lt;/<span class="hljs-name">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">html</span>&gt;</span>
</code></pre>
<ul>
<li><code>&lt;!DOCTYPE html&gt;</code> &#x58F0;&#x660E;&#x4E3A; HTML5 &#x6587;&#x6863;  </li>
<li><code>&lt;html&gt;&lt;/html&gt;</code> HTML&#x9875;&#x9762;&#x7684; <strong>&#x8DDF;&#x6807;&#x7B7E;</strong>  </li>
<li><code>&lt;head&gt;&lt;/head&gt;</code> HTML&#x7684;&#x7ED3;&#x6784;&#x5316;&#x6807;&#x7B7E;&#xFF0C;&#x5C31;&#x50CF;&#x4EBA;&#x7C7B;&#x7684;&#x601D;&#x7EF4;&#xFF0C;&#x662F;&#x7ED9;&#x6D4F;&#x89C8;&#x5668;&#x770B;&#x7684;&#xFF0C;&#x800C;&#x4E0D;&#x662F;&#x7ED9;&#x4EBA;&#x770B;&#x7684;&#x3002;  </li>
<li><code>&lt;body&gt;&lt;/body&gt;</code> HTML&#x7684;&#x7ED3;&#x6784;&#x5316;&#x6807;&#x7B7E;&#xFF0C;&#x5C31;&#x50CF;&#x4EBA;&#x7C7B;&#x7684;&#x8EAB;&#x4F53;&#xFF0C;&#x662F;&#x7ED9;&#x4EBA;&#x7C7B;&#x770B;&#x7684;&#x3002;  </li>
</ul>
<hr>
<h2 id="&#x4EC0;&#x4E48;&#x662F;-html&#xFF1F;">&#x4EC0;&#x4E48;&#x662F; HTML&#xFF1F;</h2>
<p>HTML &#x662F;&#x7528;&#x6765;&#x63CF;&#x8FF0;&#x7F51;&#x9875;&#x7684;&#x4E00;&#x79CD;&#x8BED;&#x8A00;&#x3002;  </p>
<ul>
<li>HTML &#x6307;&#x7684;&#x662F;&#x8D85;&#x6587;&#x672C;&#x6807;&#x8BB0;&#x8BED;&#x8A00;&#xFF1A; HyperText Markup Language  </li>
<li>HTML &#x4E0D;&#x662F;&#x4E00;&#x79CD;&#x7F16;&#x7A0B;&#x8BED;&#x8A00;&#xFF0C;&#x800C;&#x662F;&#x4E00;&#x79CD;<strong>&#x6807;&#x8BB0;&#x8BED;&#x8A00;</strong>  </li>
<li>&#x6807;&#x8BB0;&#x8BED;&#x8A00;&#x662F;&#x4E00;&#x5957;<strong>&#x6807;&#x8BB0;&#x6807;&#x7B7E;</strong>(markup tag)  </li>
<li>HTML &#x4F7F;&#x7528;&#x6807;&#x8BB0;&#x6807;&#x7B7E;&#x6765;&#x63CF;&#x8FF0;&#x7F51;&#x9875;  </li>
<li>HTML &#x6587;&#x6863;&#x5305;&#x542B;&#x4E86;HTML&#x6807;&#x7B7E;&#x53CA;&#x6587;&#x672C;&#x5185;&#x5BB9;  </li>
<li>HTML &#x6587;&#x6863;&#x4E5F;&#x53EB;&#x505A; web &#x9875;&#x9762;  </li>
</ul>
<hr>
<h2 id="html-&#x6807;&#x7B7E;">HTML &#x6807;&#x7B7E;</h2>
<p>HTML &#x6807;&#x8BB0;&#x6807;&#x7B7E;&#x901A;&#x5E38;&#x88AB;&#x79F0;&#x4E3A; HTML &#x6807;&#x7B7E;&#xFF08;HTML tag&#xFF09;</p>
<ul>
<li>HTML &#x6807;&#x7B7E;&#x662F;&#x7531;<strong>&#x5C16;&#x62EC;&#x53F7;</strong>&#x5305;&#x56F4;&#x7684;&#x5173;&#x952E;&#x5B57;&#xFF0C;&#x4F8B;&#x5982;<code>&lt;html&gt;</code>  </li>
<li>HTML &#x6807;&#x7B7E;&#x901A;&#x5E38;&#x662F;&#x6210;&#x5BF9;&#x51FA;&#x73B0;&#x7684;&#xFF0C;&#x4F8B;&#x5982; <code>&lt;p&gt;</code> &#x548C; <code>&lt;/p&gt;</code>  </li>
<li>&#x6807;&#x7B7E;&#x5BF9;&#x4E2D;&#x7684;&#x7B2C;&#x4E00;&#x4E2A;&#x6807;&#x7B7E;&#x662F;<strong>&#x5F00;&#x59CB;&#x6807;&#x7B7E;</strong>&#xFF0C;&#x7B2C;&#x4E8C;&#x4E2A;&#x6807;&#x7B7E;&#x662F;<strong>&#x7ED3;&#x675F;&#x6807;&#x7B7E;</strong>  </li>
<li>&#x5F00;&#x59CB;&#x548C;&#x7ED3;&#x675F;&#x6807;&#x7B7E;&#x4E5F;&#x88AB;&#x79F0;&#x4E3A;<em>&#x5F00;&#x653E;&#x6807;&#x7B7E;</em>&#x548C;<em>&#x95ED;&#x5408;&#x6807;&#x7B7E;</em>  </li>
</ul>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span>&#x5185;&#x5BB9;<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
</code></pre>
<hr>
<h2 id="html-&#x5143;&#x7D20;"><a href="3-element.html">HTML &#x5143;&#x7D20;</a></h2>
<p>&#x201C;html &#x6807;&#x7B7E;&#x201D;&#x548C;&#x201C;html &#x5143;&#x7D20;&#x201D;&#x901A;&#x5E38;&#x90FD;&#x662F;&#x63CF;&#x8FF0;&#x540C;&#x6837;&#x7684;&#x610F;&#x601D;&#x3002;<br>&#x4F46;&#x662F;&#x4E25;&#x683C;&#x6765;&#x8BB2;&#xFF0C;&#x4E00;&#x4E2A; html &#x5143;&#x7D20;&#x5305;&#x542B;&#x4E86;&#x5F00;&#x59CB;&#x6807;&#x7B7E;&#x4E0E;&#x7ED3;&#x675F;&#x6807;&#x7B7E;&#x3002;  </p>
<hr>
<h2 id="doctype-&#x58F0;&#x660E;">&lt;!DOCTYPE&gt; &#x58F0;&#x660E;</h2>
<p><code>&lt;!DOCTYPE&gt;</code> &#x662F;html5&#x7684;&#x58F0;&#x660E;&#xFF0C;&#x6709;&#x52A9;&#x4E8E;&#x6D4F;&#x89C8;&#x5668;&#x6B63;&#x786E;&#x663E;&#x793A;&#x7F51;&#x9875;&#xFF0C;&#x5176;&#x4ED6;&#x7248;&#x672C;&#x7684;html&#x58F0;&#x660E;&#x53EF;&#x4EE5;&#x81EA;&#x884C;&#x641C;&#x7D22;&#x3002;<br>&#x7F51;&#x7EDC;&#x4E0A;&#x6709;&#x5F88;&#x591A;&#x4E0D;&#x540C;&#x7684;&#x6587;&#x4EF6;&#xFF0C;&#x5982;&#x679C;&#x80FD;&#x591F;&#x6B63;&#x786E;&#x58F0;&#x660E; html &#x7684;&#x7248;&#x672C;&#xFF0C;&#x6D4F;&#x89C8;&#x5668;&#x5C31;&#x80FD;&#x6B63;&#x786E;&#x663E;&#x793A;&#x7F51;&#x9875;&#x5185;&#x5BB9;&#x3002;<br>doctype &#x58F0;&#x660E;&#x662F;&#x4E0D;&#x533A;&#x5206;&#x5927;&#x5C0F;&#x5199;&#x7684;&#xFF0C;&#x4EE5;&#x4E0B;&#x65B9;&#x5F0F;&#x5747;&#x53EF;&#xFF1A;  </p>
<pre><code class="lang-html"><span class="hljs-meta">&lt;!DOCTYPE html&gt;</span>

<span class="hljs-meta">&lt;!DOCTYPE HTML&gt;</span>

<span class="hljs-meta">&lt;!doctype html&gt;</span>

<span class="hljs-meta">&lt;!doctype HTML&gt;</span>
</code></pre>
<hr>
<h2 id="&#x4E2D;&#x6587;&#x7F16;&#x7801;">&#x4E2D;&#x6587;&#x7F16;&#x7801;</h2>
<p>&#x76EE;&#x524D;&#x5728;&#x5927;&#x90E8;&#x5206;&#x6D4F;&#x89C8;&#x5668;&#x4E2D;&#xFF0C;&#x76F4;&#x63A5;&#x8F93;&#x51FA;&#x4E2D;&#x6587;&#x4F1A;&#x51FA;&#x73B0;&#x4E2D;&#x6587;&#x4E71;&#x7801;&#x7684;&#x60C5;&#x51B5;&#x3002;<br>&#x8FD9;&#x65F6;&#x6211;&#x4EEC;&#x5C31;&#x9700;&#x8981;&#x5728;&#x5934;&#x90E8;&#x5C06;&#x5B57;&#x7B26;&#x58F0;&#x660E;&#x4E3A; <strong>UTF-8</strong> &#x6216; <strong>GBK</strong>  </p>
<pre><code class="lang-html"><span class="hljs-meta">&lt;!DOCTYPE html&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">html</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">head</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">meta</span> <span class="hljs-attr">charset</span>=<span class="hljs-string">&quot;utf-8&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">title</span>&gt;</span>&#x9875;&#x9762;&#x6807;&#x9898;<span class="hljs-tag">&lt;/<span class="hljs-name">title</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">head</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">body</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">h1</span>&gt;</span>&#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x6807;&#x9898;1<span class="hljs-tag">&lt;/<span class="hljs-name">h1</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span>&#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x6BB5;&#x843D;<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">html</span>&gt;</span>
</code></pre>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../" class="navigation navigation-prev " aria-label="Previous page: 0.HTML 介绍">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="2-basice.html" class="navigation navigation-next " aria-label="Next page: 2.HTML 基础">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"1.HTML 简介","level":"1.1.2","depth":2,"next":{"title":"2.HTML 基础","level":"1.1.3","depth":2,"path":"docs/2-basice.md","ref":"./docs/2-basice.md","articles":[]},"previous":{"title":"0.HTML 介绍","level":"1.1.1","depth":2,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"docs/1-introduce.md","mtime":"2020-07-11T02:32:08.899Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-07-14T15:48:00.710Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

